package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * The type Inorder.
 */
public class Inorder extends Common implements Serializable {
    private static final long serialVersionUID = -35637629774911380L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 供应商id
     */
    private String pId;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "createTime")
    private Date createTime;
    /**
     * 订单费用
     */
    private Object cost;
    /**
     * 状态0未发货，1为已发货
     */
    private Integer status;
    /**
     * 订单编号
     */
    private String orderNum;

    /**
     * To string string.
     *
     * @return the string
     */
    @Override
    public String toString() {
        return "Inorder{" +
                "id='" + id + '\'' +
                ", pId=" + pId +
                ", createTime=" + createTime +
                ", cost=" + cost +
                ", status=" + status +
                ", orderNum='" + orderNum + '\'' +
                '}';
    }

    /**
     * Gets serial version uid.
     *
     * @return the serial version uid
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /**
     * Gets id.
     *
     * @return the id
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets pid.
     *
     * @return the pid
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public String getpId() {
        return pId;
    }

    /**
     * Sets pid.
     *
     * @param pId the pid
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public void setpId(String pId) {
        this.pId = pId;
    }

    /**
     * Gets create time.
     *
     * @return the create time
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    @Override
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * Gets cost.
     *
     * @return the cost
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public Object getCost() {
        return cost;
    }

    /**
     * Sets cost.
     *
     * @param cost the cost
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public void setCost(Object cost) {
        this.cost = cost;
    }

    /**
     * Gets status.
     *
     * @return the status
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * Sets status.
     *
     * @param status the status
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * Gets order num.
     *
     * @return the order num
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public String getOrderNum() {
        return orderNum;
    }

    /**
     * Sets order num.
     *
     * @param orderNum the order num
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    /**
     * Instantiates a new Inorder.
     *
     * @param id         the id
     * @param pId        the pid
     * @param createTime the create time
     * @param cost       the cost
     * @param status     the status
     * @param orderNum   the order num
     * @author overlook
     * @date 2022 -04-16 20:30:34
     */
    public Inorder(String id, String pId, Date createTime, Object cost, Integer status, String orderNum) {
        this.id = id;
        this.pId = pId;
        this.createTime = createTime;
        this.cost = cost;
        this.status = status;
        this.orderNum = orderNum;
    }

    /**
     * Instantiates a new Inorder.
     *
     * @author overlook
     * @date 2022 -04-16 20:30:35
     */
    public Inorder() {
    }
}

